package org.linlinjava.litemall.db.service;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.github.yulichang.base.MPJBaseServiceImpl;
import org.linlinjava.litemall.db.dao.LumiereFormulaSpecificationsMapper;
import org.linlinjava.litemall.db.domain.LumiereFormulaSpecifications;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LumiereFormulaSpecificationsService extends MPJBaseServiceImpl<LumiereFormulaSpecificationsMapper, LumiereFormulaSpecifications> {

    @Autowired
    private LumiereFormulaSpecificationsMapper lumiereFormulaSpecificationsMapper;


    public List<LumiereFormulaSpecifications> selectListByFormulaId(Integer formulaId){
        return lumiereFormulaSpecificationsMapper.selectList(Wrappers.lambdaQuery(LumiereFormulaSpecifications.class).eq(LumiereFormulaSpecifications::getFormulaId, formulaId));
    }


}
